package cn.stu.lqj.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
//使用Mybatis-plus 实体类与哪个表对应
@TableName("tb_dept")
@Accessors(chain = true)
public class Dept implements Serializable {
    @TableId(type = IdType.AUTO)
    @TableField("dept_id")
    private int deptId;
    @TableField("dept_name")
    private String deptName;
    @TableField("dept_loc")
    private String deptLoc;
    @TableField("dept_num")
    private String deptNum;
}
